﻿using System;
using UnityEngine;

// Token: 0x02000128 RID: 296
public class DynamicBoneCollisionCheck : MonoBehaviour
{
	// Token: 0x060006B4 RID: 1716 RVA: 0x00027D20 File Offset: 0x00025F20
	public void SetupCollision()
	{
		DynamicBone[] componentsInChildren = base.GetComponentsInChildren<DynamicBone>();
		DynamicBone_Ver01[] componentsInChildren2 = base.GetComponentsInChildren<DynamicBone_Ver01>();
		DynamicBone_Ver02[] componentsInChildren3 = base.GetComponentsInChildren<DynamicBone_Ver02>();
		DynamicBoneCollider[] array = UnityEngine.Object.FindObjectsOfType<DynamicBoneCollider>();
		foreach (DynamicBone dynamicBone in componentsInChildren)
		{
			dynamicBone.m_Colliders.Clear();
			foreach (DynamicBoneCollider item in array)
			{
				dynamicBone.m_Colliders.Add(item);
			}
		}
		foreach (DynamicBone_Ver01 dynamicBone_Ver in componentsInChildren2)
		{
			dynamicBone_Ver.m_Colliders.Clear();
			foreach (DynamicBoneCollider item2 in array)
			{
				dynamicBone_Ver.m_Colliders.Add(item2);
			}
		}
		foreach (DynamicBone_Ver02 dynamicBone_Ver2 in componentsInChildren3)
		{
			dynamicBone_Ver2.Colliders.Clear();
			foreach (DynamicBoneCollider item3 in array)
			{
				dynamicBone_Ver2.Colliders.Add(item3);
			}
		}
	}
}
